package main.pojo;


import java.util.Date;

/**
 * 评论
 * @TableName COMMENT
 */
public class Comment  {
    /**
     * 主键
     */
    private String id;

    /**
     * 内容
     */
    private String comment;

    /**
     * 评论对象 0 菜品  1 门店
     */
    private Integer obj;

    /**
     * 评论类型 0 评论 1 回复
     */
    private Integer type;

    /**
     * 评论人
     */
    private String creator;

    /**
     * 评论时间
     */
    private Date createDate;

    /**
     * 更新者
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updateDate;

    /**
     * 所属门店
     */
    private String store;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getObj() {
        return obj;
    }

    public void setObj(Integer obj) {
        this.obj = obj;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Comment comment1 = (Comment) o;

        if (id != null ? !id.equals(comment1.id) : comment1.id != null) return false;
        if (comment != null ? !comment.equals(comment1.comment) : comment1.comment != null) return false;
        if (obj != null ? !obj.equals(comment1.obj) : comment1.obj != null) return false;
        if (type != null ? !type.equals(comment1.type) : comment1.type != null) return false;
        if (creator != null ? !creator.equals(comment1.creator) : comment1.creator != null) return false;
        if (createDate != null ? !createDate.equals(comment1.createDate) : comment1.createDate != null) return false;
        if (updater != null ? !updater.equals(comment1.updater) : comment1.updater != null) return false;
        if (updateDate != null ? !updateDate.equals(comment1.updateDate) : comment1.updateDate != null) return false;
        return store != null ? store.equals(comment1.store) : comment1.store == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (comment != null ? comment.hashCode() : 0);
        result = 31 * result + (obj != null ? obj.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (creator != null ? creator.hashCode() : 0);
        result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
        result = 31 * result + (updater != null ? updater.hashCode() : 0);
        result = 31 * result + (updateDate != null ? updateDate.hashCode() : 0);
        result = 31 * result + (store != null ? store.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id='" + id + '\'' +
                ", comment='" + comment + '\'' +
                ", obj=" + obj +
                ", type=" + type +
                ", creator='" + creator + '\'' +
                ", createDate=" + createDate +
                ", updater='" + updater + '\'' +
                ", updateDate=" + updateDate +
                ", store='" + store + '\'' +
                '}';
    }
}